import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class SparrowService {

  constructor() { }

  getId(object: any): string {
    return object._links.self.href.substr(object._links.self.href.lastIndexOf("/")+1);
  }

}
